				<div id="fullhead"></div>	
				
				<h2>
					Edit Profile
				</h2> 
			
				{% if error %}
				<h4 class="error">{{ error }}</h4>
				{% endif %}			
			
				<form class="tableform" method=POST action="/edit_profile" style="margin-left:120px">
					
					<div class="form_elem2">
						<label for="name">Name</label>
						<input type="text" id="name" name="name" value="{{ name }}" />
						<div style="clear:both"></div>
					</div>									
					
					<div class="form_elem2">
						<label for="gender">Gender</label>
						<select id="gender" name="gender">
							<option value="Male" {{ ismale|yesno:"selected," }}>Male</option>
							<option value="Female" {{ ismale|yesno:",selected" }}>Female</option>
						</select>
						<div style="clear:both"></div>
					</div>
					
					<div class="form_elem2">
						<label for="age">Age</label>
						<input type="text" id="age" name="age" value = "{{ age }}"/>
						<div style="clear:both"></div>
					</div>					
					
					<div class="form_elem2">
						<label for="desc">Description</label>
						<textarea  id="desc" name="desc" >{{ description }}</textarea>
						<div style="clear:both"></div>
					</div>
					
					<div class="form_elem2">
						<label for="location">Location</label>
						<input type="text" id="location" name="location" value="{{ location }}" />
						<div style="clear:both"></div>
					</div>
					
					<div class="form_elem2">
						<label for="website">Website</label>
						<input type="text" id="website" name="website" value="{{ website }}" />
						<div style="clear:both"></div>
					</div>					
					
					<div class="form_elem" style="width:500px">
						<input type="submit" value="Update"/>
						
						<input type="button" href="profile?user={{ username }}" value="Back" style="float:right" />
					</div>
					
				</form>
					
	</body>
</html>